home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000057_news@watsun.cc.columbia.edu _Wed May 12 09:49:27 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA19354
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 12 May 1999 09:49:27 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA03230
  7.     for kermit.misc@watsun.cc.columbia.edu; Wed, 12 May 1999 09:36:23 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Auto Connecting?
  11. Date: 12 May 1999 13:36:22 GMT
  12. Organization: Columbia University
  13. Message-ID: <7hc04m$34s$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <7hbohv$s2e$1@nnrp1.deja.com>,
  17.  <john_cosimano@my-dejanews.com> wrote:
  18. : I guess it should be easy enough, but my Using C-Kermit doesn't seem to
  19. : cover it. I'm interested in having kermit autoconnect. In other words,
  20. : at the [/tmp] C-Kermit> prompt, I would like a 'c' to issued
  21. : automatically.
  22. :
  23. Connect to what automatically?  First you have to set up the connection,
  24. for example:
  25.  
  26.   set host blah
  27.  
  28. or:
  29.  
  30.   set modem type xxx
  31.   set port yyy
  32.   set speed zzz
  33.   dial nnnnnn
  34.  
  35. : The autoconnection script in the book seem to be for automating dialup stuff.
  36. Each of the more common types of connections (modem dialing, Telnet) includes
  37. an "autoconnect" feature anyway:
  38.  
  39.  . TELNET <hostname> enters CONNECT mode automatically if the TCP/IP TELNET
  40.    connection is made successfully.
  41.  
  42.  . RLOGIN <hostname> enters CONNECT mode automatically if the TCP/IP RLOGIN
  43.    connection is made successfully.
  44.  
  45.  . DIAL <phonenumber> enters CONNECT mode automatically if the call is
  46.    answered and the DIAL command was given at top level.  If you tell Kermit
  47.    to SET DIAL CONNECT ON, then DIAL always CONNECTs if the phone is answered,
  48.    even if the DIAL command is given from a script.
  49.  
  50. Other connection types can be handled with a macro.  For example, X.25:
  51.  
  52.   define X25CONNECT {
  53.       set network type x25
  54.       if fail stop 1 X.25 connections are not available
  55.       set host \%1
  56.       if fail stop 1 Can't make connection to \%1
  57.       connect
  58.   }
  59.  
  60. - Frank